﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="DataBitsConverter.xaml.cs" company="R.V.Kasner">
//   Copyright © 2011 R.V.Kasner
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Owen.Terminal.View.Converters
{
    using System;

    using Owen.Communication.Serial;

    public class DataBitsConverter : BaseEnumConverter<DataBits>
    {
        public DataBitsConverter()
            : base(
                new[]
                    {
                        new Tuple<DataBits, string>(DataBits.Five, "5"), 
                        new Tuple<DataBits, string>(DataBits.Six, "6"), 
                        new Tuple<DataBits, string>(DataBits.Seven, "7"), 
                        new Tuple<DataBits, string>(DataBits.Eight, "8"),
                        new Tuple<DataBits, string>(DataBits.Nine, "9"), 
                    })
        {
        }
    }
}